<?php
    $msg = '';
    if(isset($_GET['wsdl_url'])){
        $prefix = $_GET['prefix'];
        require_once('generator.php');
        $generator = new Generator($_GET['wsdl_url'], $_GET['prefix']);
        $generator->methodFieldsWithPriority = array('storeUrl', 'userKey');
        $generator->generate('out');
        $msg = "SDK Generated";
    }

?>
<html>
<head>
    
</head>
<body>
    <h1><?php echo $msg; ?></h1>
    <form>
        WSDL URL: <input type="text" name="wsdl_url" value="http://api.3dcart.com/cart.asmx?WSDL" size="60"> <br/>
        Class Prefix: <input type="text" name="prefix" value="ThreeDCart_" size="60"> <br/>
        <input type="submit" value="Generate Service Class"/>
    </form>
    <a href="out/examples">View Examples</a>
</body>
</html>